import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("recharge_option", { schema: "cabinet" })
export class RechargeOption {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("decimal", {
    name: "amount",
    comment: "充值金额",
    precision: 5,
    scale: 2,
    default: () => "'0.00'",
  })
  amount: string;

  @Column("decimal", {
    name: "pay_amount",
    nullable: true,
    comment: "支付金额",
    precision: 5,
    scale: 2,
  })
  payAmount: string | null;
}
